#include "ThreadPool.hpp"
#include "Task.hpp"
#include <memory>


using namespace ThreadPoolModule;

int main()
{
    ENABLE_CONSOLE_LOG();
    ThreadPool<task_t>::getInstance()->Start();

    int cnt = 10;
    while(cnt--)
    {
        ThreadPool<task_t>::getInstance()->Equeue(Push);
        sleep(1);
    }

    ThreadPool<task_t>::getInstance()->Stop();
    ThreadPool<task_t>::getInstance()->Wait();
    
    return 0;
}